import request from '@/utils/request'

export default {
  //1 新增借贷信息
  saveLoan(loan){
    return request({
      url:`/jdservice/loan/addLoan`,
      method:'post',
      data:loan
    })
  },
  //2 根据ID查询借贷信息，回显
  getLoanById(id){
    return request({
      url:`/jdservice/loan/getLoanById/${id}`,
      method:'get'
    })
  },
  //3 根据id更新借贷信息
  updateById(loan,id){
    return request({
      url:`/jdservice/loan/update/${id}`,
      method:'post',
      data:loan
    })
  },

 
}
